package com.xiaoxin.experience.service.sdk.rtsp;

/**
 * @author xiaoxin
 */
public class RtspFactory
{
    private static final String HIK_RTSP = "hik";

    private static final String DH_RTSP = "dh";

    public static RtspUrlBuilder produce(String manufacturer,String ip,String password)
    {
        switch (manufacturer)
        {
            case HIK_RTSP:
                return new HikRtspUrlBuilder(ip,password);
            case DH_RTSP:
                return new DhRtspUrlBuilder(ip,password);
            default:
                throw new IllegalArgumentException();
        }
    }
}
